package com.zuipin.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zuipin.entity.SysUserResource;
import com.zuipin.mapper.SysUserResourceMapper;
import com.zuipin.service.ISysUserResourceService;
import com.zuipin.util.Pagination;

/**
 * 用户-数据-权限 关系服务实现
 * 
 * @ClassName: SysUserResourceSer5viceImpl
 * @Description: TODO
 * @author  robot
 * @date 2017年09月147日 09:21:09
 */
@Service
public class SysUserResourceServiceImpl implements ISysUserResourceService {
	
	@Resource
	private SysUserResourceMapper sysUserResourceMapper;
	
	@Override
	public SysUserResource findById( Long id) {
		return sysUserResourceMapper.findById(id);
	}
	
	@Override
	public void insert(SysUserResource sysUserResource) {
		sysUserResourceMapper.insert(sysUserResource);
	}
	
	@Override
	public void update(SysUserResource sysUserResource) {
		sysUserResourceMapper.update(sysUserResource);
	}
	
	@Override
	public void delete( Long id) {
		sysUserResourceMapper.delete(id);
		
	}
	
	@Override
	public List<SysUserResource> seachSysUserResource(SysUserResource sysUserResource, Pagination page) {
		return sysUserResourceMapper.seachSysUserResource(sysUserResource, page);
	}
	
}
